package org.seedltd.upms.enums;

import org.seedltd.core.base.BaseEnum;

/**
 *
 * 订单状态
 *
 * @author laizuan
 * @version 1.0
 * @since 2021/8/12 15:35
 */
public enum OrderStatus implements BaseEnum<Integer> {
    // @formatter:off
    UNPAID(1, "待支付"),
    UN_DELIVER(5, "待投递"),
    DELIVER(10, "已投递"),
    CHECKING(13, "检测中"),
    DONE(15, "检测完成");
    // @formatter:on
    private final int value;
    private final String desc;

    OrderStatus(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public String getDesc() {
        return desc;
    }

    @Override
    public Integer getValue() {
        return value;
    }

}
